﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ChoViet.CMS.ViewModels.ArticleTypeEditViewModel>" %>

<%@ Import Namespace="ChoViet.Lib.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Sửa loại bài viết
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%if (ViewData["MessageInfo"] == null)
      { %>
    <% using (Html.BeginForm("EditCms", "ArticleType", FormMethod.Post, new { id = "adminForm", enctype = "multipart/form-data" }))
       {%>
    <%= Html.ValidationSummary(true)%>
    <fieldset>
        <legend>Sửa</legend><font color="red">*</font> là trường bắt buộc phải nhập.
        <table class="admintable">
            <tbody>
                <tr>
                    <td class="key">
                        Tên loại (<font color="red">*</font>)
                    </td>
                    <td>
                        <%= Html.TextBoxFor(model => model.ArticleType.Description, new { @class = "required" })%>
                    </td>
                </tr>
            </tbody>
        </table>
        <p>
            <input type="submit" value="Lưu thay đổi" />
        </p>
    </fieldset>
    <% }
  } %>

    <script type="text/javascript">
        $(document).ready(function() {
            $("#adminForm").validate();
        });
    </script>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Toolbar" runat="server">
    <%= Html.Toolbar("Quay về", "/ArticleType/IndexCms/" , "back") %>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Header" runat="server">
    Sửa loại bài viết
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Message" runat="server">
    <%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>
</asp:Content>
